from aaaa.base.base import Base
from selenium.webdriver.common.by import By
from time import sleep

# 搜索类
class SouSuo(Base):
    sousuo=By.XPATH,'/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.RelativeLayout/android.widget.FrameLayout/android.widget.FrameLayout[2]/android.widget.RelativeLayout/android.widget.RelativeLayout[1]/android.widget.LinearLayout[1]/android.widget.TextView'
    sousuokuang=By.ID,'com.kongfz.app:id/etContent'
    sousuoanniu=By.ID,'com.kongfz.app:id/tvSearch'
    dy1=By.ID,'com.kongfz.app:id/cardview'

    def sousuoyemian(self,name):
        self.loc_ele(self.sousuo).click()
        sleep(3)
        self.loc_ui_ele(self.sosuokuang).send_kays(name)
        sleep(3)
        self.loc_wait_ele(self.sousuoanniu).click()
        sleep(3)





